<?php
require_once("database.php");

class xl_friend extends database {
	
	
	function danh_sach_ban_be($uid) 
	{		
		$sql = "SELECT uid2 FROM friend WHERE uid1 = '$uid'";
		$this->setQuery($sql);
		return $this->loadAllRow();
	}
	function so_luong_ban_be($uid)
	{
		$sql = "SELECT count(*) From friend where uid1 = '$uid'";
		$this->setQuery($sql);
		return $this->loadResult();
	}
 }
?>